package cn.bird.storm.validated.paramcheck.model.notempty;

import cn.bird.storm.validated.paramcheck.inter.ICheckBean;
import cn.hutool.core.util.ObjectUtil;
import lombok.Builder;
import lombok.Getter;

import java.util.function.Predicate;

@Getter
@Builder
public class NotEmptyCheckBean implements ICheckBean<Object> {

    private String msg;

    private Object value;

    @Override
    public Predicate<Object> getPassTest(){
        return ObjectUtil::isNotEmpty;
    }
}
